CSGO-Overwatch-Bot icon indicating copy to clipboard operation
CSGO-Overwatch-Bot copied to clipboard

[SUGGESTION] Auto Tests

Open BlackYuzia opened this issue 5 years ago • 13 comments

@BeepIsla

What about auto tests? Sometimes we change something (for example we broke aimbot and AA)

We can broke anything and would miss this. So, how about use 1-5 demos with legit, rage, no cheats guys and create auto tests for all of this situations and players?

For example:

  1. Tests for Aimbot
    • Rage (expect - detect as cheater)
    • Legit (expect - do not detect as cheater)
    • No Cheats (expect - do not detect as cheater)
  2. Tests for AA
    • Rage (expect - detect as cheater)
    • Legit (expect - do not detect as cheater)
    • No Cheats (expect - do not detect as cheater) // etc ...

Also auto tests start when you/we push anything in to master. If tests has been failed - revert to latest stable build (or something like this)

BlackYuzia avatar Oct 06 '20 21:10 BlackYuzia

Maybe by implementation of CI (CircleCI or Travis or another option) with a test demo or a few test demos which gets automatically triggered upon a change so that the tests are done before you merge a PR?

KillaBoi avatar Oct 07 '20 01:10 KillaBoi

I wanted to do this but I didn't want to upload a whole ass demo or more to Github

BeepIsla avatar Oct 07 '20 07:10 BeepIsla

@BeepIsla we have any else analogs for do some tests without upload demos in to repo?

BlackYuzia avatar Oct 07 '20 07:10 BlackYuzia

I'm pretty sure you're able to download the demo from a 3rd party service whilst it's running in CI, you'd only need to run force.js with the demo and steamid64 right?

KillaBoi avatar Oct 10 '20 03:10 KillaBoi

Downloading from some online file storage isn't the problem, I just want to try and avoid that if possible. If I can't think of any other solution then I will just go with that.

BeepIsla avatar Oct 10 '20 03:10 BeepIsla

I saw idea from repo demofile for add links of demo in to .sh file. https://github.com/saul/demofile/blob/92b621e5a38268a2cc537ac3e806a1cb46d68a81/demos/download.sh#L8-L9

He download demo on tests, check hash of demo(s) and etc ...

BlackYuzia avatar Oct 26 '20 02:10 BlackYuzia

I saw idea from repo demofile for add links of demo in to .sh file. https://github.com/saul/demofile/blob/92b621e5a38268a2cc537ac3e806a1cb46d68a81/demos/download.sh#L8-L9

He download demo on tests, check hash of demo(s) and etc ...

That's the same idea I had, but we'd have to host it on some online file storage area and that's something Beepisla is trying to avoid but I think that would only be the best way possible...

KillaBoi avatar Oct 26 '20 17:10 KillaBoi

I decided to just go for downloads from a server a few weeks ago, I just haven't gotten around to implementing anything. I also need demos with various different cheats and maybe legit demos too.

BeepIsla avatar Oct 26 '20 17:10 BeepIsla

I decided to just go for downloads from a server a few weeks ago, I just haven't gotten around to implementing anything. I also need demos with various different cheats and maybe legit demos too.

I can help you :) <33

Suspectxyzz avatar Oct 26 '20 18:10 Suspectxyzz

Just get MM demos, Wingman demos, or self-recorded GOTV demos, and send them here, with suspect SteamID and the 4 Overwatch options: Aimbot, Wallhack, Other, Griefing.

BeepIsla avatar Oct 26 '20 18:10 BeepIsla

Okay, I got it all working now to test the bot as a whole. I just need various demos, such as Aimbot only, Wallhack only, etc, then just some combinations of them and maybe some legit ones too.

BeepIsla avatar Nov 09 '20 15:11 BeepIsla

I'll get some demos today and link em here, been busy with COVID + Uni stuff.

Just a question, the results, I assume you want just Demofile + SteamID64 + word(s) of what the demo contains right and not a force.js value from all the demos being submitted?

KillaBoi avatar Nov 17 '20 10:11 KillaBoi

The demos I've provided for testing purposes are located at https://valveantiche.at/demos/ and the download URLS are just a number (eg: https://valveantiche.at/demos/1.dem, https://valveantiche.at/demos/2.dem) and the reasoning for the demos is also in the website on the table. I've disabled CloudFlare's restrictions so the downloads won't get captcha'd when you try to access the page.

KillaBoi avatar Nov 17 '20 11:11 KillaBoi