[r217]: / landingpage / index.html  Maximize  Restore  History

Download this file

249 lines (228 with data), 10.5 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
	<meta name="Description" content="'CfUnit' is motivated by absence of 'good and free' open source IEC61131-3 automated unit-testing solutions. Developed in ST for CODESYS based PLC systems. MIT-Licensed">
	<meta name="keywords" content="MIT-License,CfUnit,free,MIT,open-source,open,source,automated,unit,test,tests,testing,framework,IEC61131-3,61131-3,61131,Structured Text,ST,CODESYS,CoDeSyS,PLC,POU,OOP,POU-oriented Unit Testing of IEC 61131-3 Control Software,IEC unit test,IEC unit-tests,Testing Procedure for IEC 61131-3 Control Software,Management of Unit Tests,Automated Software Testing">
	<link rel="shortcut icon" href="https://forge.codesys.com/_ew_resources/theme/ownforgetheme/images/favicon.ico" />
    <title>CfUnit &mdash; An open source unit testing framework for CODESYS</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
	<link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/lighter2.css" rel="stylesheet">
  </head>
  <body>

    <nav class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
		  <a class="navbar-brand nav-link" href="#top">
			<img src="img/logo_codesys_forge.png" class="card-img-top" alt="CODESYS" width="100" height="50">
			<img src="img/tdd.png" class="card-img-top" alt="CfUnit" width="50" height="50">
			CfUnit
		  </a>
        </div> <!-- /.navbar-header -->

        <div class="collapse navbar-collapse navbar-ex1-collapse">
          <ul class="nav navbar-nav navbar-right">
            <li><a href="#features" class="nav-link">Features</a></li>
            <li><a href="#tour-head" class="nav-link">Tour</a></li>
            <li><a href="#start" class="nav-link">Getting started</a></li>
			<li><a href="#Download">Download</a></li>
            <li><a href="#about" class="nav-link">About</a></li>
          </ul>
        </div> <!-- /.navbar-collapse -->
      </div> <!-- /.container -->
    </nav> <!-- /.navbar -->


    <div id="top" class="jumbotron">
      <div class="container">
        <h1>CfUnit &mdash; CODESYS Forge Unit Testing framework</h1>
        <h2>'CfUnit' is motivated by absence of 'good and free' open source IEC61131-3 automated unit-testing solutions. Developed in ST for CODESYS based PLC systems. MIT-Licensed</h2>
        <p><a class="btn btn-primary btn-lg" href="#Download">Download <span class="glyphicon glyphicon-circle-arrow-right"></span></a></p>
      </div> <!-- /.container -->
    </div> <!-- /.jumbotron -->


    <div class="container">
      <h3 id="features" class="subhead">Features</h3>
      <div class="row benefits">
        <div class="col-md-4 col-sm-6 benefit">
          <div class="benefit-ball">
            <span class="glyphicon glyphicon-star"></span>
          </div>
          <h3>Easy</h3>
          Download,<br>Install,<br>Reference,<br>Ready!
		</div> <!-- /.benefit -->
        <div class="col-md-4 col-sm-6 benefit">
          <div class="benefit-ball">
            <span class="glyphicon glyphicon-ok"></span>
          </div>
          <h3>Powerful</h3>
		  Higher productivity,<br>Fewer bugs,<br>Cleaner code,<br>CI/CD integration*<br>*under development</p>
		</div> <!-- /.benefit -->
        <div class="col-md-4 col-sm-6 benefit">
          <div class="benefit-ball">
            <span class="glyphicon glyphicon-heart"></span>
          </div>
          <h3>Free</h3>
          <p>MIT-Licensed</p>
        </div> <!-- /.benefit -->
      </div> <!-- /.row -->
    </div> <!-- /.container -->
	
	
    <div class="container-alternate">
      <div class="container">
        <h3 id="tour-head" class="subhead">Tour</h3>
        <div class="row">
          <div class="col-md-12">
            <div id="tour" class="carousel slide">
              <ol class="carousel-indicators">
                <li data-target="#tour" data-slide-to="0" class="active"></li>
                <li data-target="#tour" data-slide-to="1"></li>
                <li data-target="#tour" data-slide-to="2"></li>
                <li data-target="#tour" data-slide-to="3"></li>
				<li data-target="#tour" data-slide-to="4"></li>
				<li data-target="#tour" data-slide-to="5"></li>
              </ol>
              <div class="carousel-inner">
			    <div class="item active">
         	      <img src="img/installpackage.gif">
                  <div class="carousel-caption">
                    Easy installation</a>
                  </div>
                </div>
				<div class="item">
				  <img src="img/unittest.png">
                  <div class="carousel-caption">
                    Unit Test
                  </div>
                </div>
				<div class="item">
				  <img src="img/programcall.png">
                  <div class="carousel-caption">
                    Program Call
                  </div>
                </div>
				<div class="item">
				  <img src="img/CfUnitverifierOutput.png">
                  <div class="carousel-caption">
                    CfUnitVerifier Output Details
                  </div>
                </div>
				<div class="item">
				  <img src="img/SimpleCfUnitExample.gif" width="800" height = "500">
                  <div class="carousel-caption">
                    Simple CfUnit Example
                  </div>
                </div>
				<div class="item">
				  <img src="img/CfUnitTimedTestExample.gif" width="800" height = "500">
                  <div class="carousel-caption">
                    CfUnit Timed Test Example
                  </div>
                </div>
              </div>
              <a class="left carousel-control" href="#tour" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left"></span>
              </a>
              <a class="right carousel-control" href="#tour" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right"></span>
              </a>
            </div> <!-- #tour -->
          </div> <!-- /.col-md-12 -->
        </div> <!-- /.row -->
      </div> <!-- /.container -->
    </div> <!-- /.container-alternate -->

	
    <div class="container">
      <h3 id="start" class="subhead">Getting started</h3>
      <div class="row start">
		<p class="col-md-4 col-sm-6">
          <strong>Getting started</strong><br>
		  All you need to do is to download & install the library and provide a<br> 
		  reference of the CfUnit-library in your project. Now you are ready and<br>
		  you can start to write your test code.
		</p>
	    <p><ul class="col-md-4 col-sm-6">
		  <strong>Follow these simple steps</strong>
		    <ul>
			  <li>Extend <code>CfUnit.FB_TestSuite</code>,</li>
			  <li>Add the attribute-pragma <code>{attribute ‘call_after_init’}</code>,</li>
			  <li>Define the inputs and define the expected output (result),</li>
			  <li>Call the CfUnit-assert methods to compare the expected output to the actual output,</li>
			  <li>Close the test with <code>TEST_FINISHED()</code> when finished.</li>
		    </ul>
		  </ul> 
        </p>
		<p class="col-md-4 col-sm-6">
          <strong>API</strong><br>
          <a href="https://forge.codesys.com/prj/cfunit/home/CfUnit%20API%20Reference/">Online API reference can be found here</a>.
        </p>		
        <p class="col-md-4 col-sm-6">
          <strong>Bugs</strong><br>
          Bugs can be reported by opening a <a href="https://forge.codesys.com/prj/cfunit/tickets/">ticket</a> here.
        </p>
		<p class="col-md-4 col-sm-6">
          <strong>Q&A</strong><br>
          If you have any questions, <a href="https://forge.codesys.com/prj/cfunit/questions/">you can drop them here</a>.<br>
		  If you cannot find your anwser, you can always drop a question in the comment.<br>
		  Posted questions will be modderated into the Q&A for future reference.
        </p>
      </div> <!-- /.start -->
    </div> <!-- /.container -->
	
	
	<div class="container">
      <h3 id="Download" class="subhead">Download</h3>
	  <div class="row download">
	  <p class="col-md-4 col-sm-6">

	  </p>	  
	  <p>
	    <ul class="col-md-4 col-sm-6">
        <strong>Contains all you need:</strong>		
		<ul>
		  <li>CfUnit v1.0.0.0 Library</li>
		  <li>Verifier Project</li>
		  <li>Simple Example Project</li>
		</ul>
		<center>
			<a href="https://forge.codesys.com/prj/cfunit/code/HEAD/tree/tags/v1.0.0.0/CfUnit.package?format=raw" class="btn btn-primary">Download Package</a>
		</center>
	  </p>
      </div> <!-- /.row Download -->
    </div> <!-- /.container -->
	

    <div class="container-alternate">
      <div class="container">
        <h3 id="about" class="subhead">About</h3>
        <div class="row about">
          <div class="col-md-10 col-md-offset-1 text-center">
		  	</p>  
			  Kudos to Jakob Sagatowski for his kind permission to port his testing framework to CODESYS.
			  Assistance provided by zer0g & Ingo was greatly appreciated. Without their assistance the porting alone would have taken me several months.
			  Kudos for helping out with various tickets and providing valueable feedback!
            </p>
            <p>
			  Ported from TcUnit v0.9.0.0 originally written for TwinCAT3 by Jakob Sagatowski.
			<p>			  
          </div> <!-- /.col-md-10 -->
        </div> <!-- /.row -->
      </div> <!-- /.container -->
    </div> <!-- /.container-alternate -->
	

    <footer>
      <div class="container clearfix">
        <p class="pull-left">	
        </p>
        <p class="pull-right">
          <a href="https://forge.codesys.com/u/aliazzz/profile/"><img src="img/aliazzz.png" alt="Brains ... & Anything IEC61131-3"></a>Brains ... & Anything IEC61131-3<br>Aliazzz
        </p>
      </div> <!-- /.container -->
    </footer>


    <script src="js/jquery.js"></script>
    <script src="js/bootstrap.min.js"></script>
    <script>
      $(".nav-link").click(function(e) {
        e.preventDefault();
        var link = $(this);
        var href = link.attr("href");
        $("html,body").animate({scrollTop: $(href).offset().top - 80}, 500);
        link.closest(".navbar").find(".navbar-toggle:not(.collapsed)").click();
      });
    </script>
	
  </body>
</html>