Comments (7)
Can I work on this?
from cadasta-test.
Hi @shailysangwan, you are welcome to work on this if you would like. If this is for an application, per our contribution guidelines we'll need to outline how you would approach this issue first. As a forewarning, this repo isn't as well monitored as cadasta-platform
, so response time might be slower.
If it's not for an application, you can skip that step and go for it!
from cadasta-test.
@linzjax Thanks, this is for the application.
Are those guidelines specific to the first contribution or for all contributions?
from cadasta-test.
@shailysangwan They're for any contribution associated with an application for this round of Outreachy and GSoC. It allows us to work through the details of someone's approach in the early stages of their work, instead of at the PR stage. It also gives us a chance to see the way you approach problems.
from cadasta-test.
@linzjax I plan on using argparse
to invoke tests depending on the command line arguments.
So, I think we will have to restructure the way test suites are formed, so as to keep a track of individual tests and category tests to support the requirement of this issue and make the code fit well for use with argparse
.
The user executes run.py
.
It imports the folder selenium_tests, which imports all categories through the import statements in __init.py__
.
Those import statements import all test files in the respective category folders' __init.py__
files.
And in each of those test files is a list of test cases.
Do tell me if this looks acceptable.
run.py
import unittest
import selenium_tests
suite = {c: [] for c in getattr(selenium_tests, "categories")}
for c in suite:
category = getattr(selenium_tests, c)
for f in getattr(category, "files"):
file = getattr(category, f)
for t in getattr(file, "tests"):
suite[c].append(unittest.TestLoader().loadTestsFromTestCase(getattr(file, t)))
for c in suite:
unittest.TextTestRunner(verbosity=2).run(unittest.TestSuite(suite[c]))
from cadasta-test.
That seems reasonable to me. Go for it!
from cadasta-test.
Specifying tests can already be done in a limited manner using the script. See the docs for more information.
from cadasta-test.
Related Issues (20)
- Implement Records test cases #LU1 and #LU2 [map interaction]
- Implement Imports test cases
- Implement Search UI test cases
- Implement Projects user management test cases
- Implement Projects test cases #U5 and #U6 [map interaction]
- Implement Projects test cases #U10 and #U11
- Create test cases for project dashboard HOT 1
- Implement test cases for project dashboard HOT 1
- Add test for resource fields in question groups
- Implement existing tenure-relationship test cases
- Finish implementing remaining resources test cases
- test_duplicate_name_is_rejected fails intermittently
- Functional tests stop running without error or termination
- Implement Organizations test cases #U6 and #U7
- Implement Organizations test cases #M13 and #M14
- Implement Projects test case #B27
- Implement Projects test cases #B8, #B9, and #B28 [map interaction]
- Implement Projects test case #B5
- Implement Projects test case #B6
- Implement Projects test cases #B29, #B30, and #B31 [map interaction]
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 cadasta-test.