0 رای
وضعیت موجودی موجود

قیمت قبلی: 4,560,000 ریال
قیمت: 4,160,000 ریال


Product details

  • Publisher ‏ : ‎ Pragmatic Bookshelf; 1st edition (February 12, 2019)
  • Language ‏ : ‎ English
  • Paperback ‏ : ‎ 376 pages
  • ISBN-10 ‏ : ‎ 1680506218
  • ISBN-13 ‏ : ‎ 978-1680506211


 

کتاب Property-Based Testing with PropEr, Erlang, and Elixir: Find Bugs Before Your Users Do 1st Edition

Property-based testing helps you create better, more solid tests with little code. By using the PropEr framework in both Erlang and Elixir, this book teaches you how to automatically generate test cases, test stateful programs, and change how you design your software for more principled and reliable approaches. You will be able to better explore the problem space, validate the assumptions you make when coming up with program behavior, and expose unexpected weaknesses in your design. PropEr will even show you how to reproduce the bugs it found. With this book, you will be writing efficient property-based tests in no time.

Most tests only demonstrate that the code behaves how the developer expected it to behave, and therefore carry the same blind spots as their authors when special conditions or edge cases show up. Learn how to see things differently with property tests written in PropEr.

Start with the basics of property tests, such as writing stateless properties, and using the default generators to generate test cases automatically. More importantly, learn how to think in properties. Improve your properties, write custom data generators, and discover what your code can or cannot do. Learn when to use property tests and when to stick with example tests with real-world sample projects. Explore various testing approaches to find the one that's best for your code. Shrink failing test cases to their simpler expression to highlight exactly what breaks in your code, and generate highly relevant data through targeted properties. Uncover the trickiest bugs you can think of with nearly no code at all with two special types of properties based on state transitions and finite state machines.

Write Erlang and Elixir properties that generate the most effective tests you'll see, whether they are unit tests or complex integration and system tests.

What You Need

  • Basic knowledge of Erlang, optionally Elixir
  • For Erlang tests: Erlang/OTP >= 20.0, with Rebar >= 3.4.0
  • For Elixir tests: Erlang/OTP >= 20.0, Elixir >= 1.5.0

منابع کتاب کتاب Property-Based Testing with PropEr, Erlang, and Elixir: Find Bugs Before Your Users Do 1st Edition

آزمایش مبتنی بر ویژگی به شما کمک می کند تا با کد کمی، تست های بهتر و محکم تری ایجاد کنید. با استفاده از فریم ورک PropEr در Erlang و Elixir، این کتاب به شما می آموزد که چگونه به طور خودکار موارد تست را تولید کنید، برنامه های حالت دار را آزمایش کنید و نحوه طراحی نرم افزار خود را برای رویکردهای اصولی و قابل اطمینان تر تغییر دهید. شما قادر خواهید بود فضای مشکل را بهتر بررسی کنید، مفروضاتی را که هنگام ارائه رفتار برنامه انجام می دهید تأیید کنید، و ضعف های غیرمنتظره در طراحی خود را آشکار کنید. PropEr حتی به شما نشان می دهد که چگونه باگ هایی را که پیدا کرده است بازتولید کنید. با استفاده از این کتاب، در کمترین زمان ممکن تست های کارآمد مبتنی بر ویژگی را می نویسید.
 
اکثر آزمایش‌ها فقط نشان می‌دهند که کد به‌گونه‌ای رفتار می‌کند که توسعه‌دهنده انتظار داشت که رفتار کند، و بنابراین، هنگامی که شرایط خاص یا موارد لبه ظاهر می‌شوند، همان نقاط کوری را به همراه نویسندگان خود دارند. بیاموزید که چگونه با تست‌های ویژگی نوشته شده در PropEr چیزها را متفاوت ببینید.
 
با اصول اولیه تست‌های ویژگی، مانند نوشتن ویژگی‌های بدون حالت، و استفاده از مولدهای پیش‌فرض برای تولید خودکار موارد تست شروع کنید. مهمتر از آن، یاد بگیرید که چگونه در خواص فکر کنید. ویژگی های خود را بهبود بخشید، مولدهای داده سفارشی بنویسید، و کشف کنید که کد شما چه کاری می تواند انجام دهد یا نمی تواند انجام دهد. بیاموزید که چه زمانی از تست‌های دارایی استفاده کنید و چه زمانی از نمونه‌های آزمایشی با پروژه‌های نمونه واقعی استفاده کنید. روش های مختلف تست را کاوش کنید تا بهترین را برای کد خود پیدا کنید. موارد تست شکست خورده را به عبارت ساده‌تر کوچک کنید تا دقیقاً آنچه در کد شما شکسته می‌شود برجسته شود و داده‌های بسیار مرتبط از طریق ویژگی‌های هدفمند تولید شود. با دو نوع خاص از ویژگی‌های مبتنی بر انتقال حالت و ماشین‌های حالت محدود، پیچیده‌ترین اشکال‌هایی را که می‌توانید به آن فکر کنید، تقریباً بدون هیچ کدی کشف کنید.
 
ویژگی‌های Erlang و Elixir را بنویسید که مؤثرترین آزمایش‌هایی را که می‌بینید، ایجاد می‌کنند، چه آزمایش‌های واحد یا یکپارچه‌سازی پیچیده و آزمایش‌های سیستمی.
 
آنچه شما نیاز دارید
 
دانش پایه ارلنگ، به صورت اختیاری اکسیر
برای تست های Erlang: Erlang/OTP >= 20.0، با Rebar >= 3.4.0
برای تست های اکسیر: Erlang/OTP >= 20.0، Elixir >= 1.5.0

نظرات کاربران درباره کتاب Property-Based Testing with PropEr, Erlang, and Elixir: Find Bugs Before Your Users Do 1st Edition

نظری در مورد این محصول توسط کاربران ارسال نگردیده است.
اولین نفری باشید که در مورد کتاب Property-Based Testing with PropEr, Erlang, and Elixir: Find Bugs Before Your Users Do 1st Edition نظر می دهد.

ارسال نظر درباره کتاب Property-Based Testing with PropEr, Erlang, and Elixir: Find Bugs Before Your Users Do 1st Edition

لطفا توجه داشته باشید که ایمیل شما منتشر نخواهد شد.

برچسب های مرتبط با کتاب Property-Based Testing with PropEr, Erlang, and Elixir: Find Bugs Before Your Users Do 1st Edition

خرید اینترنتی کتاب های زبان اصلی کامپیوتر خرید اینترنتی کتاب های لاتین Programming Languages Debugging

بر اساس سلیقه شما...

Product details Publisher ‏ : ‎  Imprint Academic (June 1 ...
2,000,000 ریال
  Product details Format   Paperback |  544 pages ...
5,840,000 ریال

codebazan

طراحی و اجرا: فروشگاه ساز سبدخرید