Comments (5)
Is there a specific test module or format you want to use for this?
I added some version_info extraction to the scan_pe.py
scanner and plan to add a test or two before I PR it. If not, I was just gonna use Python's built-in unittests module
from strelka.
@infosec-intern if you're adding functionality to a scanner, then I wouldn't worry too much about a specific test case for the new code -- just document the tests you did do and describe them in the pull request. This issue is more about building a whole unit testing strategy -- this is something I don't have a ton of experience with, so if you're interested in building a proof of concept for how to run unit tests, then that would be great! Until we have unit testing figured out, I don't expect anyone to add them (though you're certainly welcome to).
from strelka.
I'm working on the same for one of my own repositories. I can give building a full strategy a shot - I just wanted to make sure I wasn't reinventing the wheel here if you already had something in mind
I'll go ahead and add some tests for the rest of the ScanPe components too and figure out what works/doesn't work then.
from strelka.
@infosec-intern that's a good idea--let's see how the tests for ScanPe work out and then we can make decisions starting from there.
from strelka.
Based on the results of the ScanPe unit testing, I think the best way to move forward may be to start with unit tests for each scanner and the tasting functions. I'll close out this issue and create new ones for each scanner.
from strelka.
Related Issues (20)
- Usage of __file__ Throwing Warnings HOT 2
- Add stdout Option to strelka-oneshot
- Add AES Support to ScanZip/ScanEncryptedZip
- ScanPngEof Uploading Empty Files HOT 2
- Broken PNG File Causes Unrecoverable Exception(s) HOT 1
- Lief install on Mac M1
- Unable to pip install on M1 MacBook HOT 3
- ScanJpeg Uses an Incorrrect Offset for EOI
- [BUG] ScanEncryptedDoc not Processing Known Encrypted Sample
- Add Additional ScanHeader/ScanFooter Data Encodings
- Add WEBP Image Support
- [BUG] taste_yara() Strips Leading Whitespace, Impacting Taste Yara Rules HOT 1
- Quick Start Fails on Master Branch HOT 6
- Strelka Emitting Empty Files
- file.name Field Missing From Root File Using Oneshot
- Automate Style with Standard Libraries
- ScanBITS Failing to Import HOT 2
- [BUG] Backend Build Failure HOT 7
- [BUG] [build-backend 15/17] fails with Server Quickstart HOT 4
- [BUG] Tests do not complete successfully HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strelka.