Skip to content

Commit

Permalink
Add cli test that calls the executable
Browse files Browse the repository at this point in the history
  • Loading branch information
FinnLidbetter committed Jun 5, 2024
1 parent 8b4ece6 commit c7f4f96
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Ignore crifx directories created inside test scenarios.
tests/scenarios/*/.crifx/
tests/scenarios/*/crifx-report.pdf
examples/*/crifx-report.pdf

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
24 changes: 23 additions & 1 deletion examples/example_problemset/.crifx/crifx-report.tex
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
\definecolor{insufficientred}{RGB}{255,100,100}%
\definecolor{sufficientgreen}{RGB}{0,210,0}%
\title{CRIFX Contest Preparation Status Report}%
\date{Compiled \today~at \DTMcurrenttime\DTMcurrentzone~for commit 09095607}%
\date{Compiled \today~at \DTMcurrenttime\DTMcurrentzone~for commit 8b4ece6d}%
%
\begin{document}%
\normalsize%
Expand All @@ -34,6 +34,20 @@ \section{Submissions summary}%
\hline%
\end{tabular}

%
\section{Manual review tracking}%
\label{sec:Manualreviewtracking}%
\begin{tabular}{|l|c|c|c|}%
\hline%
\rowcolor{cyan}%
{\tiny Problem}&{\tiny Statement}&{\tiny Validator(s)}&{\tiny Data}\\%
\hline%
addtwonumbers&\cellcolor{insufficientred}0/3&\cellcolor{insufficientred}0/2&\cellcolor{insufficientred}0/2\\%
\hline%
helloworld&\cellcolor{sufficientgreen}3/3&\cellcolor{insufficientred}1/2&\cellcolor{sufficientgreen}2/2\\%
\hline%
\end{tabular}

%
\section{How can I help?}%
\label{sec:HowcanIhelp?}%
Expand All @@ -51,6 +65,14 @@ \section{How can I help?}%
\item%
addtwonumbers needs at least one WA submission.%
\item%
addtwonumbers needs at least 3 statement reviews.%
\item%
addtwonumbers needs at least 2 validator reviews.%
\item%
helloworld needs at least one more validator review from someone other than Homer Simpson.%
\item%
addtwonumbers needs at least 2 test data reviews.%
\item%
Add test data%
\item%
Add input validators%
Expand Down
Binary file modified examples/example_problemset/crifx-report.pdf
Binary file not shown.
2 changes: 2 additions & 0 deletions tests/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@
def test_example_problemset(examples_path):
"""Test that the example problemset is being parsed as expected."""
example_problemset_path = os.path.join(examples_path, "example_problemset")
status = os.system(f"crifx {example_problemset_path}")
assert status == 0

0 comments on commit c7f4f96

Please sign in to comment.