|
740 | 740 | :options => { |
741 | 741 | :cmdline_args => true, |
742 | 742 | }, |
743 | | - :cmdline_args => "-n test_", |
| 743 | + :cmdline_args => "-f test_", |
744 | 744 | :expected => { |
745 | 745 | :to_pass => [ 'test_ThisTestAlwaysPasses', |
746 | 746 | 'test_NotBeConfusedByLongComplicatedStrings', |
|
758 | 758 | :options => { |
759 | 759 | :cmdline_args => true, |
760 | 760 | }, |
761 | | - :cmdline_args => "-n should_", |
| 761 | + :cmdline_args => "-f should_", |
762 | 762 | :expected => { |
763 | 763 | :to_pass => [ 'should_RunTestsStartingWithShouldByDefault' ], |
764 | 764 | :to_fail => [ ], |
|
772 | 772 | :options => { |
773 | 773 | :cmdline_args => true, |
774 | 774 | }, |
775 | | - :cmdline_args => "-n should_,test_", |
| 775 | + :cmdline_args => "-f should_,test_", |
776 | 776 | :expected => { |
777 | 777 | :to_pass => [ 'test_ThisTestAlwaysPasses', |
778 | 778 | 'test_NotBeConfusedByLongComplicatedStrings', |
|
790 | 790 | :options => { |
791 | 791 | :cmdline_args => true, |
792 | 792 | }, |
793 | | - :cmdline_args => "-n=testRunnerGeneratorSma*", |
| 793 | + :cmdline_args => "-f=testRunnerGeneratorSma*", |
794 | 794 | :expected => { |
795 | 795 | :to_pass => [ 'test_ThisTestAlwaysPasses', |
796 | 796 | 'spec_ThisTestPassesWhenNormalSetupRan', |
|
806 | 806 | :options => { |
807 | 807 | :cmdline_args => true, |
808 | 808 | }, |
809 | | - :cmdline_args => "-n testRunnerGeneratorSmall:*", |
| 809 | + :cmdline_args => "-f testRunnerGeneratorSmall:*", |
810 | 810 | :expected => { |
811 | 811 | :to_pass => [ 'test_ThisTestAlwaysPasses', |
812 | 812 | 'spec_ThisTestPassesWhenNormalSetupRan', |
|
822 | 822 | :options => { |
823 | 823 | :cmdline_args => true, |
824 | 824 | }, |
825 | | - :cmdline_args => "-n testRunnerGeneratorSmall:test_*", |
| 825 | + :cmdline_args => "-f testRunnerGeneratorSmall:test_*", |
826 | 826 | :expected => { |
827 | 827 | :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
828 | 828 | :to_fail => [ 'test_ThisTestAlwaysFails' ], |
|
836 | 836 | :options => { |
837 | 837 | :cmdline_args => true, |
838 | 838 | }, |
839 | | - :cmdline_args => "-n testRunnerGeneratorSmall:te*", |
| 839 | + :cmdline_args => "-f testRunnerGeneratorSmall:te*", |
840 | 840 | :expected => { |
841 | 841 | :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
842 | 842 | :to_fail => [ 'test_ThisTestAlwaysFails' ], |
|
850 | 850 | :options => { |
851 | 851 | :cmdline_args => true, |
852 | 852 | }, |
853 | | - :cmdline_args => "-n testRunnerGeneratorSm*:*", |
| 853 | + :cmdline_args => "-f testRunnerGeneratorSm*:*", |
854 | 854 | :expected => { |
855 | 855 | :to_pass => [ 'test_ThisTestAlwaysPasses', |
856 | 856 | 'spec_ThisTestPassesWhenNormalSetupRan', |
|
885 | 885 | :cmdline_args => true, |
886 | 886 | :includes => ['Defs.h'], |
887 | 887 | }, |
888 | | - :cmdline_args => "-n test_ -x Ignored", |
| 888 | + :cmdline_args => "-f test_ -x Ignored", |
889 | 889 | :expected => { |
890 | 890 | :to_pass => [ 'test_ThisTestAlwaysPasses', |
891 | 891 | 'test_NotBeConfusedByLongComplicatedStrings', |
|
903 | 903 | :options => { |
904 | 904 | :cmdline_args => true, |
905 | 905 | }, |
906 | | - :cmdline_args => "-n ThisTestAlwaysPasses", |
| 906 | + :cmdline_args => "-f ThisTestAlwaysPasses", |
907 | 907 | :expected => { |
908 | 908 | :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
909 | 909 | :to_fail => [ ], |
|
917 | 917 | :options => { |
918 | 918 | :cmdline_args => true, |
919 | 919 | }, |
920 | | - :cmdline_args => "-n testRunnerGenerator:ThisTestAlwaysPasses", |
| 920 | + :cmdline_args => "-f testRunnerGenerator:ThisTestAlwaysPasses", |
921 | 921 | :expected => { |
922 | 922 | :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
923 | 923 | :to_fail => [ ], |
|
931 | 931 | :options => { |
932 | 932 | :cmdline_args => true, |
933 | 933 | }, |
934 | | - :cmdline_args => "-n testRunnerGenerator.c:ThisTestAlwaysPasses", |
| 934 | + :cmdline_args => "-f testRunnerGenerator.c:ThisTestAlwaysPasses", |
935 | 935 | :expected => { |
936 | 936 | :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
937 | 937 | :to_fail => [ ], |
|
945 | 945 | :options => { |
946 | 946 | :cmdline_args => true, |
947 | 947 | }, |
948 | | - :cmdline_args => "-n \"testRunnerGenerator:ThisTestAlwaysPasses,test_ThisTestAlwaysFails\"", |
| 948 | + :cmdline_args => "-f \"testRunnerGenerator:ThisTestAlwaysPasses,test_ThisTestAlwaysFails\"", |
949 | 949 | :expected => { |
950 | 950 | :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
951 | 951 | :to_fail => [ 'test_ThisTestAlwaysFails' ], |
|
959 | 959 | :options => { |
960 | 960 | :cmdline_args => true, |
961 | 961 | }, |
962 | | - :cmdline_args => "-n 'testRunnerGenerator:ThisTestAlwaysPasses,test_ThisTestAlwaysFails'", |
| 962 | + :cmdline_args => "-f 'testRunnerGenerator:ThisTestAlwaysPasses,test_ThisTestAlwaysFails'", |
963 | 963 | :expected => { |
964 | 964 | :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
965 | 965 | :to_fail => [ 'test_ThisTestAlwaysFails' ], |
966 | 966 | :to_ignore => [ ], |
967 | 967 | } |
968 | 968 | }, |
969 | 969 |
|
| 970 | + { :name => 'ArgsHandlePreciseMatch', |
| 971 | + :testfile => 'testdata/testRunnerGenerator.c', |
| 972 | + :testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'], |
| 973 | + :options => { |
| 974 | + :cmdline_args => true, |
| 975 | + }, |
| 976 | + :cmdline_args => "-n 'test_ThisTestAlwaysPasses'", |
| 977 | + :expected => { |
| 978 | + :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
| 979 | + :to_fail => [ ], |
| 980 | + :to_ignore => [ ], |
| 981 | + } |
| 982 | + }, |
| 983 | + |
| 984 | + { :name => 'ArgsHandlePreciseMatches', |
| 985 | + :testfile => 'testdata/testRunnerGenerator.c', |
| 986 | + :testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'], |
| 987 | + :options => { |
| 988 | + :cmdline_args => true, |
| 989 | + }, |
| 990 | + :cmdline_args => "-n 'test_ThisTestAlwaysPasses,test_ThisTestAlwaysFails'", |
| 991 | + :expected => { |
| 992 | + :to_pass => [ 'test_ThisTestAlwaysPasses' ], |
| 993 | + :to_fail => [ 'test_ThisTestAlwaysFails' ], |
| 994 | + :to_ignore => [ ], |
| 995 | + } |
| 996 | + }, |
| 997 | + |
| 998 | + { :name => 'ArgsRequiresPreciseMatchNotPartial', |
| 999 | + :testfile => 'testdata/testRunnerGenerator.c', |
| 1000 | + :testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'], |
| 1001 | + :options => { |
| 1002 | + :cmdline_args => true, |
| 1003 | + }, |
| 1004 | + :cmdline_args => "-n ThisTestAlwaysPass", |
| 1005 | + :expected => { |
| 1006 | + :to_pass => [ ], |
| 1007 | + :to_fail => [ ], |
| 1008 | + :to_ignore => [ ], |
| 1009 | + } |
| 1010 | + }, |
| 1011 | + |
970 | 1012 | { :name => 'ArgsIncludeAValidTestForADifferentFile', |
971 | 1013 | :testfile => 'testdata/testRunnerGenerator.c', |
972 | 1014 | :testdefines => ['TEST', 'UNITY_USE_COMMAND_LINE_ARGS'], |
973 | 1015 | :options => { |
974 | 1016 | :cmdline_args => true, |
975 | 1017 | }, |
976 | | - :cmdline_args => "-n AnotherFile:ThisTestDoesNotExist", |
| 1018 | + :cmdline_args => "-f AnotherFile:ThisTestDoesNotExist", |
977 | 1019 | :expected => { |
978 | 1020 | :to_pass => [ ], |
979 | 1021 | :to_fail => [ ], |
|
987 | 1029 | :options => { |
988 | 1030 | :cmdline_args => true, |
989 | 1031 | }, |
990 | | - :cmdline_args => "-n ThisTestDoesNotExist", |
| 1032 | + :cmdline_args => "-f ThisTestDoesNotExist", |
991 | 1033 | :expected => { |
992 | 1034 | :to_pass => [ ], |
993 | 1035 | :to_fail => [ ], |
|
1015 | 1057 | :options => { |
1016 | 1058 | :cmdline_args => true, |
1017 | 1059 | }, |
1018 | | - :cmdline_args => "-n testRunnerGenerator", |
| 1060 | + :cmdline_args => "-f testRunnerGenerator", |
1019 | 1061 | :expected => { |
1020 | 1062 | :to_pass => [ 'test_ThisTestAlwaysPasses', |
1021 | 1063 | 'spec_ThisTestPassesWhenNormalSetupRan', |
|
1053 | 1095 | :cmdline_args => true, |
1054 | 1096 | :test_prefix => "paratest" |
1055 | 1097 | }, |
1056 | | - :cmdline_args => "-n ShouldHandleParameterizedTests", |
| 1098 | + :cmdline_args => "-f ShouldHandleParameterizedTests", |
1057 | 1099 | :features => [ :parameterized ], |
1058 | 1100 | :expected => { |
1059 | 1101 | :to_pass => [ 'paratest_ShouldHandleParameterizedTests\(25\)', |
|
1124 | 1166 | :options => { |
1125 | 1167 | :cmdline_args => true, |
1126 | 1168 | }, |
1127 | | - :cmdline_args => "-n", |
| 1169 | + :cmdline_args => "-f", |
1128 | 1170 | :expected => { |
1129 | 1171 | :to_pass => [ ], |
1130 | 1172 | :to_fail => [ ], |
|
1164 | 1206 | "Options:", |
1165 | 1207 | "-l List all tests and exit", |
1166 | 1208 | "-f NAME Filter to run only tests whose name includes NAME", |
1167 | | - "-n NAME \\(deprecated\\) alias of -f", |
| 1209 | + "-n NAME Run only the test named NAME", |
1168 | 1210 | "-h show this Help menu", |
1169 | 1211 | "-q Quiet/decrease verbosity", |
1170 | 1212 | "-v increase Verbosity", |
|
1188 | 1230 | "Options:", |
1189 | 1231 | "-l List all tests and exit", |
1190 | 1232 | "-f NAME Filter to run only tests whose name includes NAME", |
1191 | | - "-n NAME \\(deprecated\\) alias of -f", |
| 1233 | + "-n NAME Run only the test named NAME", |
1192 | 1234 | "-h show this Help menu", |
1193 | 1235 | "-q Quiet/decrease verbosity", |
1194 | 1236 | "-v increase Verbosity", |
|
0 commit comments