agstephens / compliance-checker-as-pf Goto Github PK
View Code? Open in Web Editor NEWTest repo for CC by AS & PF
License: Apache License 2.0
Test repo for CC by AS & PF
License: Apache License 2.0
The IOOS compliance checker allows the user to specify multiple "tests" to run on a file.
Each "test" relates to a python class where each method (whose name begins with "check_")
constitutes a check to be made on that file.
The output can be written to a number of formats using the argument -f
:
-f json -o output.json
- write to JSON file-f html -o output.html
- write to HTML file-f txt -o output.txt
- write to Text fileThe HTML output view is very useful but it currently only writes the output of the last
test to the output file. Any other tests are ignored or overwritten.
The task is to get the HTML file to show all tests that are run and their outputs.
Here is the task broken down in detail:
https://github.com/ioos/compliance-checker
git clone https://github.com/<USERID>/compliance-checker
cd compliance-checker/
virtualenv --system-site-packages venv
source venv/bin/activate
pip install -r requirements.txt
pip install -r test_requirements.txt
pip install .
cchecker.py -test acdd --test cf compliance_checker/tests/data/bad_data_type.nc
This should show the results of both the "acdd" and "cf" tests on the bad_data_type.nc
file.
To get text output:
cchecker.py -o output.txt -f text --test acdd --test cf compliance_checker/tests/data/bad_data_type.nc
And the HTML output:
cchecker.py -o output.html -f html --test acdd --test cf compliance_checker/tests/data/bad_data_type.nc
Compare the outputs and verify that only the second ("cf") test is stored in the output.html
file.
Find out where the HTML output is written and modify the code to fix it so that it records results of
all tests.
If necessary, add tests to the code base.
Push changes to your GitHub.
Create a PR on the IOOS master repo.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.