Skip to content
This repository was archived by the owner on Apr 29, 2023. It is now read-only.

[SUGGESTION] Auto Tests #161

Open
BlackYuzia opened this issue Oct 6, 2020 · 13 comments
Open

[SUGGESTION] Auto Tests #161

BlackYuzia opened this issue Oct 6, 2020 · 13 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@BlackYuzia
Copy link
Contributor

@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)

@KillaBoi
Copy link
Contributor

KillaBoi commented Oct 7, 2020

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?

@BeepIsla
Copy link
Owner

BeepIsla commented Oct 7, 2020

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

@BlackYuzia
Copy link
Contributor Author

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

@BeepIsla BeepIsla added the enhancement New feature or request label Oct 7, 2020
@KillaBoi
Copy link
Contributor

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?

@BeepIsla
Copy link
Owner

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.

@BlackYuzia
Copy link
Contributor Author

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 ...

@KillaBoi
Copy link
Contributor

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...

@BeepIsla
Copy link
Owner

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.

@Suspectxyzz
Copy link

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

@BeepIsla
Copy link
Owner

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
Copy link
Owner

BeepIsla commented Nov 9, 2020

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 BeepIsla added the help wanted Extra attention is needed label Nov 9, 2020
@KillaBoi
Copy link
Contributor

KillaBoi commented Nov 17, 2020

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
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants