Skip to content

Commit

Permalink
TcUnit fixed version to 1.2.0.0 (release).
Browse files Browse the repository at this point in the history
TcUnit-Verifier: Updated log4net configuration to show output-level (5-level).
TcUnit-Verifier: Updated TcUnit-Verifier output example (to match the new log4net configuration).
  • Loading branch information
sagatowski committed Apr 22, 2021
1 parent 86f227f commit df90ead
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Welcome to the documentation TcUnit - an xUnit testing framework for [Beckhoff's
**Main documentation site is available on:**
**[www.tcunit.org](https://www.tcunit.org)**

**Unit testing... huh?**
**What is test driven development and unit testing?**
Familiarize yourself with [the basic concepts and specifics for TcUnit](https://tcunit.org/unit-testing-concepts/).

**Want to know how to get started?**
Expand Down
30 changes: 16 additions & 14 deletions TcUnit-Verifier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,20 +91,22 @@ This is an example of how it can look running the TcUnit-Verifier_DotNet:

```
C:\Code\GitHub_TcUnit\TcUnit\TcUnit-Verifier\TcUnit-Verifier_DotNet\TcUnit-Verifier\bin\Debug>TcUnit-Verifier.exe -v "C:\Code\GitHub_TcUnit\TcUnit\TcUnit-Verifier\TcUnit-Verifier_TwinCAT\TcUnit-Verifier_TwinCAT.sln"
2020-04-06 05:51:43 - Starting TcUnit-Verifier...
2020-04-06 05:51:43 - Loading the Visual Studio Development Tools Environment (DTE)...
2020-04-06 05:52:00 - Cleaning and building TcUnit-Verifier_TwinCAT solution...
2020-04-06 05:52:00 - Generating TcUnit-Verifier_TwinCAT boot project...
2020-04-06 05:52:06 - Activating TcUnit-Verifier_TwinCAT configuration...
2020-04-06 05:52:09 - Restarting TwinCAT...
2020-04-06 05:52:09 - Waiting for TcUnit-Verifier_TwinCAT to finish running tests...
2020-04-06 05:52:19 - ... got 386 report lines so far.
2020-04-06 05:52:29 - ... got 886 report lines so far.
2020-04-06 05:52:39 - ... got 1325 report lines so far.
2020-04-06 05:52:40 - Asserting results...
2020-04-06 05:52:40 - Done.
2020-04-06 05:52:40 - Closing the Visual Studio Development Tools Environment (DTE), please wait...
2020-04-06 05:53:02 - Exiting application...
2021-04-22 12:17:47 [INFO ] - Starting TcUnit-Verifier...
2021-04-22 12:17:47 [INFO ] - In Visual Studio solution file, found visual studio version 12.0
2021-04-22 12:17:47 [INFO ] - Loading the Visual Studio Development Tools Environment (DTE)...
2021-04-22 12:17:59 [INFO ] - Cleaning and building TcUnit-Verifier_TwinCAT solution...
2021-04-22 12:17:59 [INFO ] - Generating TcUnit-Verifier_TwinCAT boot project...
2021-04-22 12:18:15 [INFO ] - Activating TcUnit-Verifier_TwinCAT configuration...
2021-04-22 12:18:21 [INFO ] - Restarting TwinCAT...
2021-04-22 12:18:21 [INFO ] - Waiting for TcUnit-Verifier_TwinCAT to finish running tests...
2021-04-22 12:18:31 [INFO ] - ... got 222 report lines so far.
2021-04-22 12:18:42 [INFO ] - ... got 773 report lines so far.
2021-04-22 12:18:54 [INFO ] - ... got 1373 report lines so far.
2021-04-22 12:19:07 [INFO ] - ... got 1382 report lines so far.
2021-04-22 12:19:10 [INFO ] - Asserting results...
2021-04-22 12:19:10 [INFO ] - Done.
2021-04-22 12:19:10 [INFO ] - Closing the Visual Studio Development Tools Environment (DTE), please wait...
2021-04-22 12:19:33 [INFO ] - Exiting application...
```
If there was an error in the TcUnit framework this would be shown between the
lines `Asserting results...` and `Done.`. If nothing is shown between these
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
</root>
<appender name="console" type="log4net.Appender.ConsoleAppender">
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%utcdate{yyyy-MM-dd HH:mm:ss} - %message%newline" />
<conversionPattern value="%utcdate{yyyy-MM-dd HH:mm:ss} [%-5level] - %message%newline" />
</layout>
</appender>
<appender name="file" type="log4net.Appender.RollingFileAppender">
Expand All @@ -15,7 +15,7 @@
<staticLogFileName value="false" />
<appendToFile value="true" />
<layout type="log4net.Layout.PatternLayout">
<conversionPattern value="%utcdate{yyyy-MM-dd HH:mm:ss} - %message%newline" />
<conversionPattern value="%utcdate{yyyy-MM-dd HH:mm:ss} [%-5level] - %message%newline" />
</layout>
</appender>
</log4net>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<Company>www.tcunit.org</Company>
<Released>false</Released>
<Title>TcUnit verifier</Title>
<ProjectVersion>1.1.0.0</ProjectVersion>
<ProjectVersion>1.2.0.0</ProjectVersion>
<Author>Jakob Sagatowski and contributors</Author>
<Description>This project is can be used to verify the different functions of TcUnit. It has various test suites to test different functions in TcUnit. By making sure to comment out everything except the test suite that is interesting it is possible to test only the specific function of TcUnit that is interesting.</Description>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// This function has been automatically generated from the project information.
VAR_GLOBAL CONSTANT
{attribute 'const_non_replaced'}
stLibVersion_TcUnit_verifier : ST_LibVersion := (iMajor := 1, iMinor := 1, iBuild := 0, iRevision := 0, sVersion := '1.1.0.0');
stLibVersion_TcUnit_verifier : ST_LibVersion := (iMajor := 1, iMinor := 2, iBuild := 0, iRevision := 0, sVersion := '1.2.0.0');
END_VAR
]]></Declaration>
</GVL>
Expand Down
2 changes: 1 addition & 1 deletion TcUnit/TcUnit/TcUnit.plcproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<Implicit_Jitter_Distribution>{9ba5f403-6725-42f3-958a-e49cc23e0e00}</Implicit_Jitter_Distribution>
<LibraryReferences>{d4c50e9b-48cc-4451-9f8a-44fa2a49ee45}</LibraryReferences>
<CombineIds>false</CombineIds>
<Released>false</Released>
<Released>true</Released>
<Title>TcUnit</Title>
<DefaultNamespace>TcUnit</DefaultNamespace>
<Description>TwinCAT unit testing framework.
Expand Down

0 comments on commit df90ead

Please sign in to comment.