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

Download this file

233 lines (215 with data), 9.9 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
<!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="#jumbotron" class="nav-link">About</a></li>
<li><a href="#features" class="nav-link">Features</a></li>
<li><a href="#tour-head" class="nav-link">Tour</a></li>
<li><a href="#Download">Download</a></li>
<li><a href="#start" class="nav-link">Getting started</a></li>
<li><a href="#Resources" class="nav-link">Resources</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.
Written in Structured-Text 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>
<br>
<h4>
Forked from <a href="https://www.tcunit.org">TcUnit</a> by Jakob Sagatowski for TwinCAT3. Assistance provided
by zer0g & Ingo was greatly appreciated. Without their assistance, porting alone would have taken me several
months. Kudos for helping me out with various tickets and providing invalueable feedback!
<h4>
</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>
</ol>
<div class="carousel-inner">
<div class="item active">
<img src="img/installpackage.gif">
<div class="carousel-caption d-md-block">
Step 1: Installation
</div>
</div>
<div class="item">
<img src="img/TestSuite.png">
<div class="carousel-caption d-md-block">
Step 2: Define Test Suite(s)
</div>
</div>
<div class="item">
<img src="img/TestMethod.png">
<div class="carousel-caption d-md-block">
Step 3: Define Test Method(s)
</div>
</div>
<div class="item">
<img src="img/programcall.png">
<div class="carousel-caption d-md-block">
Step 4: Define TestProgram, call Test Suite
</div>
</div>
<div class="item">
<img src="img/SimpleCfUnitExample.gif">
<div class="carousel-caption d-md-block">
Step 5: Run TestProgram and check TestLog
</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="Download" class="subhead">Download</h3>
<div class="row download" >
<p>
<ul class="col-md-4 col-sm-6 text-center">
<p>
<a href="https://forge.codesys.com/prj/cfunit/code/HEAD/tree/tags/v1.0.0.0/CfUnit.package?format=raw" class="btn btn-primary">CfUnit v1.0.0.0 Package</a>
</p>
<strong>Contains</strong>
<br>CfUnit Library
<br>Verifier Project
<br>Simple Example Project
</p>
</div> <!-- /.row Download -->
</div> <!-- /.container -->
<div class="container">
<h3 id="start" class="subhead">Getting started</h3>
<div class="row start" >
<p>
<ul class="col-md-4 col-sm-6 text-center">
<strong>A detailed step by step tutorial for the Simple CfUnit example project can be found <a href="https://forge.codesys.com/prj/cfunit/home/Home/">here</a>.</strong>
<br>Extend your test with <code>CfUnit.FB_TestSuite</code>,
<br>Add the attribute-pragma <code>{attribute ‘call_after_init’}</code>,
<br>Define the inputs and define the expected output (result),
<br>Call the CfUnit-assert methods to compare the expected output to the actual output,i>
<br>Close the test with <code>TEST_FINISHED()</code> when finished.
<br>Call the test method from the main FB Body
</p>
</div>
</div> <!-- /.start -->
</div> <!-- /.container -->
<div class="container">
<h3 id="Resources" class="subhead">Resources</h3>
<div class="row Resources">
<div class="col-md-10 col-md-offset-1 text-center">
<p class="col-md-4 col-sm-6">
<strong>API</strong><br>
Online API reference can be found <a href="https://forge.codesys.com/prj/cfunit/home/CfUnit%20API%20Reference/">here</a>.
</p>
<p class="col-md-4 col-sm-6">
<strong>Q&A</strong><br>
If you have any questions, you can drop them <a href="https://forge.codesys.com/prj/cfunit/questions/">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>
<p class="col-md-4 col-sm-6">
<strong>Bugs</strong><br>
Bugs can be reported by opening a ticket <a href="https://forge.codesys.com/prj/cfunit/tickets/">here</a>.
</p>
</div> <!-- /.col-md-10 -->
</div> <!-- /.row -->
</div> <!-- /.Resources -->
</div> <!-- /.container -->
<br>
<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>